package com.rsy.ware.dao;

import com.rsy.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品库存
 * 
 * @author rsy
 * @email sunlightcs@gmail.com
 * @date 2022-05-01 00:11:45
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    //添加库存
    void addStock(@Param("skuId") Long skuId, @Param("wareId") Long wareId, @Param("skuNum") Integer skuNum);
    //查询库存多少
    Long getSkuStock(@Param("skuId") Long skuId);
}
